package com.eurekaconsumerfeign.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author: create by Young
 * @version: v1.0
 * @description: com.eurekaconsumerfeign.client
 * @date:2019/3/31 23:33
 */
@FeignClient("eureka-client")  //指定这个接口要调用的服务名称
public interface DcClient {

	//使用Spring MVC注解就能绑定服务提供方的REST接口
	@GetMapping("/dc")
	String consumer();
}
